package com.songshuai.webapi.crm.dao;

import com.songshuai.webapi.crm.dto.request.customerfollow.BatchCustomerListReqDto;
import com.songshuai.webapi.crm.dto.request.customerfollow.ListRecordReqDto;
import com.songshuai.webapi.crm.dto.response.customer.CommunicateRecordListResDto;
import com.songshuai.webapi.crm.dto.response.customerfollow.BatchCustomerListResDto;
import com.songshuai.webapi.crm.dto.response.customerfollow.ListRecordResDto;
import com.songshuai.webapi.crm.model.CommunicateRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CommunicateRecordMapper继承基类
 */

public interface CommunicateRecordMapper  {

    CommunicateRecord selectByPrimaryKey(String communicateId);
    Integer deleteByPrimaryKey(String communicateId);
    Integer insertSelective(CommunicateRecord communicateRecord);
    Integer updateByPrimaryKeySelective(CommunicateRecord communicateRecord);

    //沟通记录总数
    Integer listRecordCount(ListRecordReqDto listRecordReqDto);
    //沟通记录列表
    List<ListRecordResDto> listRecord(ListRecordReqDto listRecordReqDto);

    List<BatchCustomerListResDto> batchCustomerList(BatchCustomerListReqDto batchCustomerListReqDto);
    //根据多个id获取沟通记录
    List<CommunicateRecordListResDto> queryCommunicateRecordListByIds(@Param("list") List<String> lastCommunicateIdList);

}